package com.smy.common;

import java.sql.Connection;
import java.util.List;

public interface MyDao<T> {
    int insert(T t, Connection c) ;
    List<Integer> insertBatch(List<T> batch,Connection c);
    T selectById(int id,Connection c);
    List<T> selectAll(Connection c);
    int updateById(T t,Connection c) ;

    Bool<T> boolQuery(Bool<T> bool, Connection c);

    int deleteById(T t, Connection c);
}
